package com.yunke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 用户通知实体类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yunke_user_notification")
@Schema(name = "YunkeUserNotification", description = "用户通知实体")
public class YunkeUserNotification implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "通知ID")
    private Long id;

    @Schema(description = "接收用户ID")
    private Long userId;

    @Schema(description = "发送者用户ID（0表示系统通知）")
    private Long fromUserId;

    @Schema(description = "通知类型（1系统通知 2点赞通知 3评论通知 4关注通知 5私信通知 6活动通知 7订单通知）")
    private Integer notificationType;

    @Schema(description = "通知标题")
    private String title;

    @Schema(description = "通知内容")
    private String content;

    @Schema(description = "关联对象类型（1动态 2评论 3订单 4活动）")
    private Integer relatedType;

    @Schema(description = "关联对象ID")
    private Long relatedId;

    @Schema(description = "扩展数据（JSON格式）")
    private String extData;

    @Schema(description = "通知图标")
    private String notifyIcon;

    @Schema(description = "跳转URL")
    private String jumpUrl;

    @Schema(description = "是否已读（0未读 1已读）")
    private Integer isRead;

    @Schema(description = "优先级（1低 2中 3高）")
    private Integer priority;

    @Schema(description = "通知渠道（1站内信 2短信 4邮件 8推送，可组合）")
    private Integer channels;

    @Schema(description = "发送状态（0待发送 1已发送 2发送失败）")
    private Integer sendStatus;

    @Schema(description = "发送时间")
    private Long sendTime;

    @Schema(description = "阅读时间")
    private Long readTime;

    @Schema(description = "过期时间")
    private Long expireTime;

    @Schema(description = "状态（0正常 1删除）")
    private Integer status;

    @Schema(description = "创建时间")
    private Long createTime;

    @Schema(description = "更新时间")
    private Long updateTime;
} 